package org.ccf.certified.business.shiro.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.ccf.certified.business.base.BaseModel;

import java.util.Set;

/**
 * @author LiuFang
 * @date 2022/1/12
 */
@Data
@TableName("sys_user")
public class User extends BaseModel {

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**用户名*/
    private String username;
    /**用户密码*/
    private String password;
    /**盐*/
    private String slat;
    /**中文名称*/
    private String name;
    /**手机号码*/
    private String mobile;
    /**邮箱*/
    private String email;
    /**角色集合*/
    @TableField(exist = false)
    private Set<String> roles;
    /**资源集合*/
    @TableField(exist = false)
    private Set<String> permission;
}
